class VideoDetailDataModel {
  VideoDetailDataModel({
     required this.list,
     required this.video,
     this.btnDefault = "",
     this.title = "",
     this.adminId = 0,
     this.fullName = "",
     this.statementTitle = "",
     this.statementContent = "",
  });
  late final List<Item> list;
  late final VideoData video;
  late final String btnDefault;
  late final String title;
  late final int adminId;
  late final String fullName;
  late final String statementTitle;
  late final String statementContent;

  VideoDetailDataModel.fromJson(Map<String, dynamic> json){
    list = List.from(json['list']).map((e)=>Item.fromJson(e)).toList();
    video = VideoData.fromJson(json['video']);
    btnDefault = json['btn_default'];
    title = json['title'];
    adminId = json['admin_id'];
    fullName = json['full_name'];
    statementTitle = json['statement_title'];
    statementContent = json['statement_content'];
  }

  Map<String, dynamic> toJson() {
    final _data = <String, dynamic>{};
    _data['list'] = list.map((e)=>e.toJson()).toList();
    _data['video'] = video.toJson();
    _data['btn_default'] = btnDefault;
    _data['title'] = title;
    _data['admin_id'] = adminId;
    _data['full_name'] = fullName;
    _data['statement_title'] = statementTitle;
    _data['statement_content'] = statementContent;
    return _data;
  }
}

class Item {
  Item({
    required this.id,
    required this.money,
  });
  late final int id;
  late final String money;

  Item.fromJson(Map<String, dynamic> json){
    id = json['id'];
    money = json['money'];
  }

  Map<String, dynamic> toJson() {
    final _data = <String, dynamic>{};
    _data['id'] = id;
    _data['money'] = money;
    return _data;
  }
}

class VideoData {
  VideoData({
     this.workType = 0,
     this.limitPlace = "",
     this.limitAgeRange = "",
     this.status = "",
     this.id = 0,
     this.title = "",
     this.videofile="",
     this.fengImage="",
     this.twiceImg="",
     this.boNumber=0,
     this.introduceImage="",
     this.isJumpMiniprogram=0,
     this.isJumpWeb=0,
     this.minAge=0,
     this.advOrigin="",
  });
  late final int workType;
  late final String limitPlace;
  late final String limitAgeRange;
  late final String status;
  late final int id;
  late final String title;
  late final String videofile;
  late final String fengImage;
  late final String twiceImg;
  late final int boNumber;
  late final String introduceImage;
  late final int isJumpMiniprogram;
  late final int isJumpWeb;
  late final int minAge;
  late final String advOrigin;

  VideoData.fromJson(Map<String, dynamic> json){
    workType = json['work_type'];
    limitPlace = json['limit_place'];
    limitAgeRange = json['limit_age_range'];
    status = json['status'];
    id = json['id'];
    title = json['title'];
    videofile = json['videofile'];
    fengImage = json['feng_image'];
    twiceImg = json['twice_img'];
    boNumber = json['bo_number'];
    introduceImage = json['introduce_image'];
    isJumpMiniprogram = json['is_jump_miniprogram'];
    isJumpWeb = json['is_jump_web'];
    minAge = json['min_age'];
    advOrigin = json['adv_origin'];
  }

  Map<String, dynamic> toJson() {
    final _data = <String, dynamic>{};
    _data['work_type'] = workType;
    _data['limit_place'] = limitPlace;
    _data['limit_age_range'] = limitAgeRange;
    _data['status'] = status;
    _data['id'] = id;
    _data['title'] = title;
    _data['videofile'] = videofile;
    _data['feng_image'] = fengImage;
    _data['twice_img'] = twiceImg;
    _data['bo_number'] = boNumber;
    _data['introduce_image'] = introduceImage;
    _data['is_jump_miniprogram'] = isJumpMiniprogram;
    _data['is_jump_web'] = isJumpWeb;
    _data['min_age'] = minAge;
    _data['adv_origin'] = advOrigin;
    return _data;
  }
}